<template>
  <div class="child">
    <h4>我是Child</h4>
    <p>接收父组件的count的值 {{count}} </p>
    <button @click="$emit('update:count', count+3)">累加</button>
  </div>
</template>

<script>
export default {
  name: "Props",
  props: ["count"],
};
</script>

<style scoped>
.child {
  color: cornflowerblue;
}
</style>